/**
 * 
 */
package com.I9lou.se.lurker.analyzer;

import org.apache.lucene.analysis.Analyzer;

/**
 * Analyzer实例工厂
 * @author chenwei
 * @date 2011-04-11
 * @ThreadSafe
 */
public interface AnalyzerFactory {
	
	/**
	 * 获得默认的Analyzer实例
	 * @return defaultAnalyzer
	 */ 
	public Analyzer getDefault();
	
	/**
	 * 根据名称获取对应的Analyzer实例
	 * 
	 * 注意：如果analyzerName为null或空，则返回默认的Analyzer实例，与调用{@link #getDefault()}效果一致
	 * @param analyzerName
	 * @return analyzer
	 */
	public Analyzer get(String analyzerName);
	
}
